package bdz.projects.lavender.cms.events
{
	import flash.events.Event;

	public class CMSEvent extends Event
	{
		public static const LOGIN_SUCCESS:String = "loginSuccess";
		public static const LOGIN_FAILED:String = "loginFailed";
		public static const OBJECT_RETRIEVED:String = "objectRetrieved";
		public static const CONTAINER_RETRIEVED:String = "containerRetrieved";
		public static const ERROR:String = "cmsError";
		public static const OBJECT_MODIFIED:String = "objectModified";
		public static const CONTAINER_MODIFIED:String = "containerModified";
		public static const ROOT_RETRIEVED:String = "rootRetrieved";
		public static const SAVE_PROGRESS:String = "saveProgress";
		public static const UPLOAD_ERROR:String = "uploadError";
		public static const BYTES_UPLOADED:String = "bytesUploaded";
		public static const START_LOGIN:String = "startLogin";
		public static const ADD_ITEM:String = "addItem";
		public static const OBJECT_DELETED:String = "objectDeleted";
		
		public var data:*;
		public function CMSEvent(type:String, info:* = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			data = info;
			super(type, bubbles, cancelable);
		}
		override public function clone():Event{
			return new CMSEvent(type, data, bubbles, cancelable);
		}
		
	}
}